package day06_OOP.demo05private关键字;

public class Test {
    public static void main(String[] args) {
        Student csw = new Student();//定义方法为Student
        csw.setAge(500);//用setage给age赋值
        int a=csw.getAge();//用新变量得到age的值
        System.out.println(a);//用Student的方法检测age并输出
    }
}
